package com.zsw.example04;

public class FruitTest {
    public static void main(String[] args) {
        Fruit f1 = new Fruit();
        f1.setName("石榴");
        f1.setArea("大理宾川");
        f1.setPrice(5);
        System.out.println(f1);

        Fruit f2 = new Fruit();
        f2.setName("李子");
        f2.setArea("大理宾川");
        f2.setPrice(2);
        System.out.println(f2);


        Fruit f3 = new Fruit();
        f3.setName("桃子");
        f3.setArea("大理宾川");
        f3.setPrice(8);
        System.out.println(f3);
    }
}
